package com.jiyun.model.sign;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 【-pending_signing】实体类
 *
 * @author ???
 * @since 2024-09-27
 */
@Data
@Accessors(chain = true)
@ApiModel(description="对象")
public class PendingSigning implements Serializable {

    @ApiModelProperty("编号，主键，自增")
    @TableId
    private Integer id;
    @ApiModelProperty("编号")
    @Excel(name = "编号")
    private String number;
    @ApiModelProperty("签约人姓名")
    @Excel(name = "签约人姓名")
    private String name;
    @ApiModelProperty("身份证号")
    @Excel(name = "身份证号")
    private String idName;
    @ApiModelProperty("手机号码")
    @Excel(name = "手机号码")
    private String phone;
    @ApiModelProperty("签约状态")
    private Integer status;
    @ApiModelProperty("签约医生团队")
    private Integer teamId;
    @ApiModelProperty("签约服务包")
    private Integer serviceId;
    @ApiModelProperty("最后修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @ApiModelProperty("签约机构")
    private Integer institutionId;
    @ApiModelProperty("出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate dateOfBirth;
    @ApiModelProperty("到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期时间")
    private LocalDate expirationDate;
    @ApiModelProperty("签约医生")
    private Integer doctorId;
    @ApiModelProperty("居民")
    private Integer juminId;


}
